package com.another.bidservice.dao.jpa;

import com.another.bidservice.entity.TUser;
import org.springframework.data.jpa.repository.JpaRepository;

import java.io.Serializable;
import java.util.List;

public interface UserJPADao extends JpaRepository<TUser, String>, Serializable{


    /**
     * 根据手机号查询用户
     * @param phone
     * @return
     */
    List<TUser> findAllByPhoneAndUserStatus(String phone,String status);

    List<TUser> findAllByUserIdIsNotAndPhoneIsAndUserStatusIs(String userId,String phone,String status);


}


